function [CCIRF2, CCIRFm3] = CCIRsorter(mth)
%
% CCIR Tables Sorter
%
%DESCRIPTION:
%This function gives the F2 and Fm3 coefficients from the CCIR table
%corresponding to the input month number.
%
%PROTOTYPE:
% [CCIRF2, CCIRFm3] = CCIRsorter(month)
%
%--------------------------------------------------------------------------
% INPUTS:
%   mth         [1x1]      Month Number              [-]
%--------------------------------------------------------------------------
% OUTPUTS:
%   CCIRF2      [1x1976]   F2 Coefficients           [-]
%   CCIRFm3     [1x882]    Fm3 Coefficients          [-]
%--------------------------------------------------------------------------
%
%NOTES:
% - The month number should be from 1 to 12 (e.g., Jan = 1, Aug = 8, etc.)
%
%CALLED FUNCTIONS:
% CCIR1.m,...,CCIR12.m
%
%UPDATES:
% (none)
%
%REFERENCES:
% [1] "Ionospheric Correction Algorithm for Galileo Single-Frequency Users"
%      - European GNSS (Galileo) Open Service
%
%AUTHOR(s):
%Luigi De Maria, Matteo D'Addazio, 2022
%

%% Main Code

switch mth
    case 1
        [CCIRF2, CCIRFm3] = CCIR1;
    case 2
        [CCIRF2, CCIRFm3] = CCIR2;
    case 3
        [CCIRF2, CCIRFm3] = CCIR3;
    case 4
        [CCIRF2, CCIRFm3] = CCIR4;
    case 5
        [CCIRF2, CCIRFm3] = CCIR5;
    case 6
        [CCIRF2, CCIRFm3] = CCIR6;
    case 7
        [CCIRF2, CCIRFm3] = CCIR7;
    case 8
        [CCIRF2, CCIRFm3] = CCIR8;
    case 9
        [CCIRF2, CCIRFm3] = CCIR9;
    case 10
        [CCIRF2, CCIRFm3] = CCIR10;
    case 11
        [CCIRF2, CCIRFm3] = CCIR11;
    case 12
        [CCIRF2, CCIRFm3] = CCIR12;
end